package com.fuyin.service.superadmin;

import com.fuyin.commons.response.BaseResponse;
import com.fuyin.dto.params.LoginParam;
import com.fuyin.entity.OperationLog;
import com.fuyin.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

/**
 * @author yuanxilan (yuanxilan@keep.com)
 * @Description
 * @date 2021年11月15日 8:49 下午
 * @since
 */
public interface SuperAdminService {

    BaseResponse login(LoginParam param);

    BaseResponse updatePassword(String token, String userName, String password, HttpServletRequest request);

    BaseResponse logout(String token);

    BaseResponse<ArrayList<User>> getAllUsers(String token, Integer pageNum, Integer pageSize);

    BaseResponse updateUserInfo(String token, User user, HttpServletRequest request);

    BaseResponse<ArrayList<OperationLog>> getOperationLogs(String token, Integer pageNum, Integer pageSize);
}
